-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept 0 as a valid value for EventListener replicas #925
Conversation
This change is intended as a workaround until a proper Knative EventListener implementation is available (see tektoncd#892). Note: without additional work, replicas=0 results in a broken setup.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @Fabian-K. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
Do you have any opinions here @savitaashture @dibyom ? It seems fine to me. |
@savitaashture the overall motivation for this is to achieve scaling to zero. Once TEP-0008 is implemented and Tekton Triggers can directly generate a Knative Service instead of the Deployment this is not required anymore. Until this is the case, this PR should allow by specifying replicas = 0 to get rid of the always running event listener pod. Of course, this leads to a broken setup but this can be fixed by manually generating e.g. a Knative Service as outlined in #892 (comment) If the implementation of TEP-0008 is almost finished, it does not make sense to merge this. If this still requires time, this at least enables a workaround to get it faster. |
Here is the issue for TEP-0008 |
This sounds good to me. @savitaashture are you planning on implementing Knative EL for v0.12? In that case maybe we can hold this PR; otherwise we can merge. |
@dibyom Yes i am planning this for v0.12 But i want to understand the priority from @Fabian-K and if they need it immediately lets merge because anyhow in future we are going to remove this validation. |
There is no immediate need, still it would be nice because we could potentially get rid of ~350 permanently running eventlinstener pods :) I don´t know the timeline for 0.12, let´s say if you plan to release that within the next 1-2 months I´m good with discarding this PR |
this is not required any more 🥳 |
Changes
Accept 0 as a valid value for EventListener replicas. This change is intended as a workaround until a proper Knative EventListener implementation is available (see #892). Note: without additional work, replicas=0 results in a broken setup.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Release Notes